<template>
  <h2>vuex-composition</h2>
  <p>{{ count }}</p>
</template>

<script>
import { computed } from "vue";
import { useStore } from "vuex";
export default {
  setup() {
    const store = useStore();

    // const count = ref(store.state.count);
    const count = computed(() => store.state.count);

    return { count };
  },
};
</script>
